package com.example.yilanchatserver.business.freechat.service;

import com.example.yilanchatserver.business.freechat.service.dto.FreeChatDTO;
import com.example.yilanchatserver.business.freechat.service.dto.FreeChatPromptDTO;
import org.springframework.scheduling.annotation.Async;

import java.util.concurrent.CompletableFuture;


public interface FreeChatService {
    CompletableFuture getData(FreeChatDTO freeChatDTO) throws Exception;

    @Async("asyncServiceExecutor")
    CompletableFuture getDataWithPrompt_v1(FreeChatPromptDTO freeChatDTO) throws Exception;

    CompletableFuture getDataWithPrompt(FreeChatPromptDTO freeChatDTO) throws Exception;

    CompletableFuture getChatGPT(FreeChatDTO freeChatDTO);

    /**
     * 获取文心一言的闲聊信息
     *
     * @param freeChatDTO
     * @return
     */
    CompletableFuture getErnieBotData(FreeChatDTO freeChatDTO) throws Exception;
}
